﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Log.aspx.cs" Inherits="log_Log" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>日记</title>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="../css/ss01.css" />
	<link rel="stylesheet" type="text/css" href="../css/stylesheet.css"/>
    <script language="JScript" src="../js/Function.js"></script>
    <script language="JScript" src="../js/myCheck.js"></script>
    <script language="JScript" src="../jquery/126/jquery-1.2.6.js"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function(){showlist('show','','');}
		);
		
        function showlist(opration,typeid,id)
        {
            var urlstring="loglist.aspx";
            $.ajax({
            url:urlstring,
            type:'post',
            dataType:'html',
            data:'&opration='+ opration + '&typeid='+typeid+'&id='+id ,
            beforeSend:function()
            {
                
            },
            error:function()
            {
                $("#mnglist").empty().append("read error!");
            },
            success: function(msg)
            {
                $("#mnglist").empty().append(msg);;
                
            }
            });
        }
        function showtemplist(opration,id)
        {
            var urlstring="logtemplist.aspx";
            $.ajax({
            url:urlstring,
            type:'post',
            dataType:'html',
            data:'&opration='+ opration + '&id='+id ,
            beforeSend:function()
            {
                
            },
            error:function()
            {
                $("#mnglist").empty().append("read error!");
            },
            success: function(msg)
            {
                $("#mnglist").empty().append(msg);;
                
            }
            });
        }
    </script>
</head>
<body>
 
    <div>
		<table cellSpacing="0" cellPadding="0" border="0" align="center">
		    <tr>
		        <td style="background-color:White;padding-right: 10px; padding-left: 10px; padding-bottom: 10px; padding-top: 10px;">
		            <table cellSpacing="0" cellPadding="0" width="600" align="center" border="0" style="background-color:White;">
		                <tr>
		                    <td style="BORDER-RIGHT: #90b0de 1px solid; BORDER-TOP: #90b0de 1px solid; BORDER-LEFT: #90b0de 1px solid; BORDER-BOTTOM: #90b0de 1px solid">
		                        <table width="100%" cellSpacing="0" cellPadding="0" align="center" border="0">
		                            <tr height="30">
		                                <td style="border-bottom: #90b0de 1px solid; font-weight: bold; color: #004499;border-bottom:1px solid silver;">&nbsp;&nbsp;&nbsp;<img src="../images/ico_rj.gif" />日记</td>
		                            </tr>
		                        </table>
		                        <table width="100%" cellSpacing="0" cellPadding="0" align="center" border="0">
		                            <tr height="30">
		                                <td style="width:148px;text-align:center;background-image:url(../images/tab_bk.png);background-repeat:no-repeat; "><a href='javascript:(location.href="loglistall.aspx?opration=show")'>日记</a></td><td style="width:148px; text-align:center; background-image:url(../images/tab_bk_act.png);background-repeat:no-repeat; " >我的日记</td><td style="width:148px;text-align:center;background-image:url(../images/tab_bk.png);background-repeat:no-repeat; "><a href='javascript:(location.href="logaboutme.aspx")'>提到我的日记</a></td><td style="border-bottom: #90b0de 1px solid; font-weight: bold; color: #004499;border-bottom:1px solid silver; text-align:right"><a href="LogInfo.aspx">写日记</a>&nbsp;|&nbsp;<a href="LogType.aspx">分类管理</a></td>
		                            </tr>
		                        </table>
                                <div id="mnginput" style="margin-top:10px;margin-bottom:10px;margin-left:10px;">
                                    <table>
                                       <tr>
                                          <td>
                                           <form id="form1" runat="server">
                                              <asp:Repeater ID="rpType" runat="server" >
                                                <HeaderTemplate>
                                                    <div width='200'>
                                                    <a href='log.aspx?opration=show&typeid='>全部类型</a>
                                                </HeaderTemplate>
                                                <ItemTemplate >
                                                    |<a href='javascript:showlist("show","<%#  DataBinder.Eval(Container.DataItem, "id") %>","")'><%#  DataBinder.Eval(Container.DataItem, "name") %></a>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    </div>
                                                </FooterTemplate>
                                              </asp:Repeater></form></td>
                                              
                                       </tr> 
                                       <tr>
                                            <td><img src="../images/caogao1.gif" /><a href='javascript:showtemplist("show","")'>暂存草稿</a></td>
                                       </tr>
                                    </table>
                                </div>
                                
                                <div style="border-top: #90b0de 1px solid;"></div>
                                <div id="mnglist" style="margin-top:10px;margin-bottom:10px;margin-left:10px;margin-right:10px;">
                                    
                                     
                                </div>
		                    </td>
		                </tr>
		            </table>
		        </td>
		    </tr>
		</table>
		
    </div>
	<div id="myhidediv" style="VISIBILITY: hidden;">
	    
	</div>
    
</body>
</html>
